package com.thingsgrid.appmonitor.entity;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;

/**
 * 应用监控信息实体类
 * 从MongoDB中取数据
 */
@Data
@Document(collection = "application_monitor")
public class ApplicationMonitor implements Serializable {

	private static final long serialVersionUID = 1L;
	/**
	 * 应用id
	 */
	@Field("application_id")
	private String applicationId;
	/**
	 * 应用CPU使用率
	 */
	@Field("application_cpu")
	private String applicationCpu;
	/**
	 * 应用内存使用率
	 */
	@Field("application_memory")
	private String applicationMemory;
	/**
	 * 应用磁盘空间使用率
	 */
	@Field("application_disk")
	private String applicationDisk;
	/**
	 * 应用流量
	 */
	@Field("application_flow")
	private String applicationFlow;
	/**
	 * 创建时间
	 */
	@Field("create_time")
	private int createTime;
}
